package com.zretc.entity;

import javax.validation.constraints.Max;
import java.util.List;

/**
 * @author  吴凯
 * @date 0720
 * 评论实体类
 */
public class Comments {
    private String commentsId;
    private Integer userId;
    private String commentsContent;
    private String commentsTime;
    private Integer filmId;
    private float commentsScore;
    private List<ReplyComment> replyCommentList;
    private  Account account;
    private  Film film;

    public String getCommentsId() {
        return commentsId;
    }

    public void setCommentsId(String commentsId) {
        this.commentsId = commentsId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCommentsContent() {
        return commentsContent;
    }

    public void setCommentsContent(String commentsContent) {
        this.commentsContent = commentsContent;
    }

    public String getCommentsTime() {
        return commentsTime;
    }

    public void setCommentsTime(String commentsTime) {
        this.commentsTime = commentsTime;
    }

    public Integer getFilmId() {
        return filmId;
    }

    public void setFilmId(Integer filmId) {
        this.filmId = filmId;
    }

    public float getCommentsScore() {
        return commentsScore;
    }

    public void setCommentsScore(float commentsScore) {
        this.commentsScore = commentsScore;
    }

    public List<ReplyComment> getReplyCommentList() {
        return replyCommentList;
    }

    public void setReplyCommentList(List<ReplyComment> replyCommentList) {
        this.replyCommentList = replyCommentList;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Film getFilm() {
        return film;
    }

    public void setFilm(Film film) {
        this.film = film;
    }

    public Comments() {
    }

    public Comments(String commentsId, Integer userId, String commentsContent, String commentsTime, Integer filmId, float commentsScore, List<ReplyComment> replyCommentList, Account account, Film film) {
        this.commentsId = commentsId;
        this.userId = userId;
        this.commentsContent = commentsContent;
        this.commentsTime = commentsTime;
        this.filmId = filmId;
        this.commentsScore = commentsScore;
        this.replyCommentList = replyCommentList;
        this.account = account;
        this.film = film;
    }

    public Comments(String commentsId, Integer userId, String commentsContent, String commentsTime, Integer filmId, float commentsScore) {
        this.commentsId = commentsId;
        this.userId = userId;
        this.commentsContent = commentsContent;
        this.commentsTime = commentsTime;
        this.filmId = filmId;
        this.commentsScore = commentsScore;
    }

    @Override
    public String toString() {
        return "Comments{" +
                "commentsId='" + commentsId + '\'' +
                ", userId=" + userId +
                ", commentsContent='" + commentsContent + '\'' +
                ", commentsTime='" + commentsTime + '\'' +
                ", filmId=" + filmId +
                ", commentsScore=" + commentsScore +
                ", replyCommentList=" + replyCommentList +
                ", account=" + account +
                ", film=" + film +
                '}';
    }
}
